Skip to content

Conversation

@wbamberg
Copy link
Collaborator

@wbamberg wbamberg commented Oct 14, 2025

This is a top-level page for the new authentication docs, reflecting https://docs.google.com/document/d/1miZbXVjs070J2HH0rsDxqPnUaqNtPP51Uo8d4FU6PTk/edit?tab=t.0#heading=h.kbs51irq6pyz, more or less.

It's basically a landing page: that is, a navigational aid for people to reach the other pages we're going to write, and to put them in context. I expect we might want to expand it as/when we decide we want to add new pages, but at the moment it just assumes 5 subpages: one for each authentication method covered+1 for session management.

Anyway, it's enough for now, to provide some structure for the pages on authentication methods, which we're planning to write next.

@martinakraus , I would be happy for you to take a look at this and the other authentication PRs that will be coming, if you would like to :).

@github-actions github-actions bot added Content:Security Security docs size/s [PR only] 6-50 LoC changed labels Oct 14, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2025

Preview URLs

Flaws (6)

URL: /en-US/docs/Web/Security/Authentication
Title: Authentication
Flaw count: 6

  • broken_links:
    • Can't resolve /en-US/docs/Web/Security/Authentication/Passwords
    • Can't resolve /en-US/docs/Web/Security/Authentication/OTP
    • Can't resolve /en-US/docs/Web/Security/Authentication/Federated_identity
    • Can't resolve /en-US/docs/Web/Security/Authentication/Passkeys
    • Can't resolve /en-US/docs/Web/Security/Authentication/Session_management
  • macros:
    • Can't resolve /en-US/docs/Glossary/JWT

(comment last updated: 2025-10-23 17:34:07)

@wbamberg wbamberg marked this pull request as ready for review October 15, 2025 00:17
@wbamberg wbamberg requested review from a team as code owners October 15, 2025 00:17
@wbamberg wbamberg requested review from Elchi3, chrisdavidmills and pepelsbey and removed request for a team and pepelsbey October 15, 2025 00:17
@wbamberg wbamberg changed the title Authentication overview, draft Authentication overview page Oct 15, 2025
- [Passkeys](/en-US/docs/Web/Security/Authentication/Passkeys)
- : Passkeys enable websites to authenticate users without the user having to enter any passwords or other secret codes on the site itself.

In a system that uses passkeys, the user's device stores a {{glossary("Public-key cryptography", "cryptographic key pair")}} representing the user's registration on a particular site. When the user tries to log into the site, the site sends the device a challenge. The device {{glossary("digital signature", "signs")}} the challenge with the private key and sends the result to the website, which can verify the signature and log the user in.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So basically the device just stores the private key most probably in a TPM or secure enclave - but it also depends if it is a synced passkey or hardware bounded passkey.
The Public key is send then together with the signed challenge to the site. (this is for registration - of course for login, the public key is already stored on the site I want to login
But I'm not sure if it is necessary to go in such a detail already here.

Copy link
Collaborator Author

@wbamberg wbamberg Oct 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I don't want to go into too much detail here, this is longer and more detailed than I would like (compared to the other ones, for instance). This is just to give a very quick idea of what kind of thing this auth method is, to contextualize it a bit. I support the main things to mention in this case are: (1) the user never has to enter any secret on the website, (2) it's based on the Web Authentication API, and (3) it uses public key cryptography to sign an assertion that the user is the person they claim to be, and the website is able to verify this signature.

The most important thing I suppose is that it doesn't simplify so much that it gives an inaccurate picture.

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Will! This is a great outline for the Authentication section. We can refine it as we write the sub pages but I think this can merge (with nits addressed)

@wbamberg wbamberg merged commit 1188cde into mdn:main Oct 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Security Security docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants